package com.lantu.wisdom.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.math.BigDecimal;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 鉴定类型表
 * </p>
 *
 * @author zch
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("w_appraisal_type")
public class WAppraisalType extends Model<WAppraisalType> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 鉴定类型编码
     */
    @TableField("type_code")
    private String typeCode;

    /**
     * 鉴定类型名称
     */
    @TableField("type_name")
    private String typeName;

    /**
     * 等级
     */
    @TableField("level")
    private Integer level;

    /**
     * 单价
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 依据标准
     */
    @TableField("standard")
    private String standard;

    /**
     * 是否推荐 1 是 2否
     */
    @TableField("introduction")
    private Integer introduction;

    /**
     * 父级id
     */
    @TableField("parent_code")
    private String parentCode;

    /**
     * 是否删除 1:是 2;否
     */
    @TableField("deleted")
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Long createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private Long updateTime;

    @TableField("remarks1")
    private String remarks1;

    @TableField("remarks2")
    private String remarks2;

    @TableField("remarks3")
    private String remarks3;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
